home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
zkuste
/
tuning
/
download
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Startmenu Special Folders 1.xpl
< prev
next >
Wrap
Text File
|
2000-09-02
|
3KB
|
100 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="4"
"UIPATH"="Appearance\Start menu\Cascaded Items"
"NAME"="Special Folders #1"
"VERSION"="1.10"
"LANGUAGE"="VBScript"
"TEXT 1"="Show cascading "Control Panel" in Start menu"
"TEXT 2"="Show cascading "Printers" in Start menu"
"TEXT 3"="Show cascading "Recycle Bin" in Start menu"
"TEXT 4"="Show cascading "Scheduled Tasks" in Start menu"
"DESCRIPTION 1"="Use this plug-in to show some of the "special" folder of Window in cascading menu so you can easily access them."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Start Menu"
sPath=""
sV1="Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
sV2="Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}"
sV3="Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
sV4="Scheduled Tasks.{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"
'Called when the Plugin is started
SUB Plugin_Initialize
sPath=RegReadValue(sP)
if FolderExists(sPath) then
if right(sPath,1)<>"\" then sPath=sPath & "\"
if FolderExists(sPath & sV1) then SetUIElement 1,true
if FolderExists(sPath & sV2) then SetUIElement 2,true
if FolderExists(sPath & sV3) then SetUIElement 3,true
if FolderExists(sPath & sV4) then SetUIElement 4,true
else
Disable
end if
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
if FolderExists(sPath & sV1)=false then
Call FolderCreate(sPath & sV1)
end if
else
if FolderExists(sPath & sV1)=true then
FolderDelete(sPath & sV1)
end if
end if
b=GetUIElement(2)
if b=true then
if FolderExists(sPath & sV2)=false then
Call FolderCreate(sPath & sV2)
end if
else
if FolderExists(sPath & sV2)=true then
FolderDelete(sPath & sV2)
end if
end if
b=GetUIElement(3)
if b=true then
if FolderExists(sPath & sV3)=false then
Call FolderCreate(sPath & sV3)
end if
else
if FolderExists(sPath & sV3)=true then
FolderDelete(sPath & sV3)
end if
end if
b=GetUIElement(4)
if b=true then
if FolderExists(sPath & sV4)=false then
Call FolderCreate(sPath & sV4)
end if
else
if FolderExists(sPath & sV4)=true then
FolderDelete(sPath & sV4)
end if
end if
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB